#include <iostream>
using namespace std;
main()
{
	int *pointer_01,*pointer_02,*pointer_03,a,b,c;
	void swap(int *p1,int *p2,int *p3);
	cout<<"Input 3nmubers"<<endl;
	cin>>a>>b>>c;
	pointer_01=&a;
	pointer_02=&b;
	pointer_03=&c;
	swap(pointer_01,pointer_02,pointer_03);
	cout<<"Cross function"<<"a="<<a<<" "<<"b="<<b<<" "<<"c="<<c<<endl;
	cout<<"The seqence is:"<<endl;
	cout<<*pointer_01<<" "<<*pointer_02<<" "<<*pointer_03<<endl;
	return 0;
}

void swap(int *p1,int *p2,int *p3)
{
	void change(int *q1,int *q2);
	change(p1,p2);
	change(p1,p3);
	change(p2,p3);
}

void change(int *q1,int *q2) //this function is different
{
	int *temp;
	if(*q1>*q2) 
	{
		temp=q1;
		q1=q2;
		q2=temp;
	}
}
//different form change the value of a,b,c,this program makes pointer to point different variable
